package com.sdry.service.impl.base;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.entity.base.Staff;
import com.sdry.mapper.base.StaffMapper;
import com.sdry.service.base.StaffService;
import com.sdry.utils.PageBean;
/**
 * 
 * @ClassName:StaffServiceImpl
 * @Description: 员工
 * @Author tdd
 * @Date 2018年4月26日上午9:39:07
 * @version 1.0
 */
@Service
@Transactional
public class StaffServiceImpl implements StaffService{

	@Resource StaffMapper staffmapper;
	
	/**
	 * 添加返回id
	 */
	@Override
	public Long add(Staff staff) {
		return staffmapper.add(staff);
	}
	/**
	 * 多删除返回影响行数
	 */
	@Override
	public Integer deleteIds(String ids) {
		return staffmapper.deleteIds(ids);
	}
	/**
	 * 修改返回影响行数
	 */
	@Override
	public Integer update(Staff param) {
		return staffmapper.update(param);
	}
	/**
	 * 根据id查询内容
	 */
	@Override
	public Staff queryById(Long id) {
		return staffmapper.queryById(id);
	}
	/**
	 * 条件分页查询
	 */
	@Override
	public List<Staff> findPageByMution(Staff staff) {
		return staffmapper.findPageByMution(staff);
	}
	/**
	 * 条件查询总条数
	 */
	@Override
	public Integer selectCountByMution(Staff staff) {
		return staffmapper.selectCountByMution(staff);
	}

	/**
	 * 根据工号和密码查信息
	 */
	@Override
	public Staff queryByScodePass(Staff staff) {
		return staffmapper.queryByScodePass(staff);
	}
	/**
	 * 条件查询
	 */
	@Override
	public List<Staff> queryAllByMution(Staff staff) {
		return staffmapper.queryAllByMution(staff);
	}
	
	/**
	 * 不用的方法
	 * **************************************star***********************
	 */
	
	
	
	@Override
	public List<Staff> queryAll(Map map) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Staff> findPage(PageBean pageBean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectCount(PageBean pageBean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Staff selectByPrimaryKey(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer insert(Staff param) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer delete(Serializable[] ids) {
		// TODO Auto-generated method stub
		return null;
	}

	

	
	/**
	 * ****************************************end*************************************
	 */
	
	
	
	
	
	
	
	
}
